#include "../head.h"

class obj
{
public:
    obj() 
    {
        cout << "constructor" << endl;
        count++;
    }
    ~obj() {cout << "deconstructor" << endl;}
    static int count;
};
int obj::count = 1;

int main()
{
    vector<obj> table;
    obj a;
    // obj b;
    table.push_back(a);
    cout << "a`s capicity is " << table.capacity() << endl;
    table.push_back(a);
    cout << "a`s capicity is " << table.capacity() << endl;
    cout << "construct time is " << obj::count << endl;
}